package com.tea.service;

import com.tea.dto.GetCouponDTO;
import com.tea.entity.Coupon;

import java.math.BigDecimal;
import java.util.Date;

public interface UserCouponService {
    void distributeCoupon(GetCouponDTO getCouponDTO);

    Date calculateExpireTime(Coupon coupon);

    boolean couponIfGet(Long userId,Long couponId);

    boolean checkCouponIfAvailable(Long couponId);

    BigDecimal useCountAmount(BigDecimal Amount, Long couponId);
}
